rotation turtle python

42

rotation turtle python -

import turtle
t = turtle.Turtle()

#Setting Rotation
t.setheading(0) # This Faces Right
t.setheading(180) # This Faces Left
t.setheading(90) # This Faces Up
t.setheading(270) # This Faces Down

###################################
# Values are measured in degrees #
###################################

rotation turtle python -

import turtle
t = turtle.Turtle()

#Changing Rotation
t.leftturn(10) # Turns Left 10 Degrees
t.rightturn(30) # Turns Right 30 Degrees

#############################################
# t.lt() and t.rt() are also abbreviations. #
#############################################

Comments

Submit
0 Comments